package com.jyt.baseUtil;

import java.awt.peer.LightweightPeer;
import java.util.Date;



public class RiZhiServlet {

	/**
	 * ��¼��־
	 * 
	 * @param uid
	 *            �û����
	 * @param ip
	 *            �û����õ�ip
	 */
	public void LoginRizhi(String uid, String ip) {
		/*Session session = HibernateSessionFactory.getSession();
		Transaction tran = session.beginTransaction();
		try {

			WlLoginrz loginrz = new WlLoginrz();
			loginrz.setDlrzid(String.valueOf(new Date().getTime()));
			loginrz.setIp(ip);
			loginrz.setType("��¼");
			loginrz.setUid(uid);
			loginrz.setSj(new Date());
			new WlLoginrzDAO().save(loginrz);
			tran.commit();
		} catch (RuntimeException e) {
			tran.rollback();// �ع� ���ڰ���
			throw e;
		} finally {
			session.close();
		}*/
	}

	/**
	 * ������̬
	 * 
	 * @param uid
	 *            �û����
	 * @param type
	 *            �û�״̬
	 * @param je
	 *            �˷ѽ��
	 * @param dsje
	 *            ���ս��
	 * @param spmc
	 *            ��Ʒ���
	 */
	public void wuliurizhi(String uid, String type, Double je, Double dsje,
			String wlid) {
		/*Session session = HibernateSessionFactory.getSession();
		Transaction tran = session.beginTransaction();
		try {
			WlWlrz wlrz = new WlWlrz();
			wlrz.setWlrzid(String.valueOf(new Date().getTime()));
			wlrz.setUid(uid);
			wlrz.setType(type);
			wlrz.setJe(je);
			wlrz.setDsje(dsje);
			wlrz.setWlid(wlid);
			wlrz.setRqsj(new Date());
			new WlWlrzDAO().save(wlrz);
			tran.commit();
		} catch (RuntimeException e) {
			tran.rollback();// �ع� ���ڰ���
			throw e;
		} finally {
			session.close();
		}*/
	}

	/**
	 * ������ˮ��
	 * 
	 * @param lsje
	 *            ��ˮ���
	 * @param type
	 *            ����״̬
	 * @param uid
	 *            �û����
	 * @param jylsh
	 *            ������ˮ��
	 * @param code
	 *            ������
	 * @param wlid
	 *            �������
	 * @param fhm
	 *            ������
	 * @param bz
	 *            ��ע
	 */
	public void zhifurizhi(double lsje, String type, String uid, String jylsh,
			String code, String wlid, String fhm, String bz) {
		/*Session session = HibernateSessionFactory.getSession();
		Transaction tran = session.beginTransaction();
		try {
			WlLsb lsb = new WlLsb();
			lsb.setLsid(String.valueOf(new Date().getTime()));
			lsb.setLsje(lsje);
			lsb.setSj(new Date());
			lsb.setType(type);
			lsb.setUid(uid);
			lsb.setJylsh(jylsh);
			lsb.setCode(code);
			lsb.setWlid(wlid);
			lsb.setFhm(fhm);
			lsb.setBz(bz);
			new WlLsbDAO().save(lsb);
			tran.commit();
		} catch (RuntimeException e) {
			tran.rollback();// �ع� ���ڰ���
			throw e;
		} finally {
			session.close();
		}*/
	}

}
